//#include "pch.h"
#include "SpreadSheetCell.h"


SpreadSheetCell::SpreadSheetCell()
{
}


SpreadSheetCell::~SpreadSheetCell()
{
}


void SpreadSheetCell::SetValue(const std::string& strValue)
{
    mValue = strValue;
}

void SpreadSheetCell::SetValue(int nValue)
{
    mValue = std::to_string(nValue);
}

std::string SpreadSheetCell::GetValue() const
{
    return mValue;
}

std::string SpreadSheetCell::GetValue()
{
    mAccessCount++;
    return mValue;
}

void SpreadSheetCell::ResetAccessCount(int x, int nAccessCount)
{

}

int SpreadSheetCell::GetAccessCount() const
{
    return mAccessCount;
}

//SpreadSheetCell SpreadSheetCell::add(SpreadSheetCell &other)
//{
//    SpreadSheetCell ret;

//    ret.SetValue(this->GetValue()+other.GetValue());
//    return ret;
//}

SpreadSheetCell SpreadSheetCell::operator+(SpreadSheetCell &other)
{
    SpreadSheetCell ret;

    ret.SetValue(this->GetValue()+other.GetValue());
    return ret;
}

void SpreadSheetCell::CellImpl::SetType(CellType nType)
{

}
